<?php

echo "当前用户为：\n";
var_dump(get_current_user());


echo "目录权限是否可写: \n";
var_dump(is_writable("/home/weige/www/uploads/"));


$ip =  $_SERVER['REMOTE_ADDR'];
echo "remote_addr".$ip; 


$ip = getenv("HTTP_REMOTE_USER_IP");
echo "http_remote_user_ip".$ip; 
